package cn.gson.tj_springboot.model.service.limitService;


import cn.gson.tj_springboot.model.dao.limitDao.UserDao;
import cn.gson.tj_springboot.model.mapper.limitMapper.RoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional(rollbackFor = Exception.class)
public class PrivilegeService {
    @Autowired
    RoleMapper roleMapper;

    @Autowired
    UserDao userDao;


    public List<Map<String,Object>> allRoles(){
        return roleMapper.allRoles();
    }

}
